/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-08-24     yangjie      the first version
 */
/*
* 程序清单：定时器例程
*
* 这个例程会创建两个动态定时器，一个是单次定时，一个是周期性定时
* 并让周期定时器运行一段时间后停止运行
*/
#include "hal_common.h"
#include "hal_esp8266.h"

sys_ctx_t sys_contex;


int hal_sys_contex_init(sys_status_fun fun, void *user_data)
{
    sys_contex.sys_status_cb = fun;
    sys_contex.user_data = user_data;

    return 0;
}

sys_ctx_t *hal_sys_contex_get(void)
{
    return &sys_contex;
}
